package org.example.strategyPattern;

public class Main {
    public static void main(String[] args) {
        PaymentStrategy strategy = new CreditCardPayment();
        PaymentContext context = new PaymentContext(strategy);
        context.pay(100.0);

        strategy = new WeChatPay();
        context = new PaymentContext(strategy);
        context.pay(200.0);
    }
    public void test(){
        System.out.println();
    }
}